package com.captainbank.tcl.tclapplication.ui.activity.function;

import android.support.v7.widget.Toolbar;

import com.captainbank.tcl.tclapplication.R;
import com.captainbank.tcl.tclapplication.ui.activity.basic.BaseActivity;
import com.captainbank.tcl.tclapplication.utils.adjuster.MoveEffectAdjuster;
import com.captainbank.tcl.tclapplication.utils.adjuster.RippleAdjuster;
import com.coorchice.library.SuperTextView;

import butterknife.BindView;

/**
 * Created by TCL on 2019/6/24.
 * Describe:
 */
public class SuperTextActivity extends BaseActivity {
    @BindView(R.id.toolbar)
    Toolbar toolbar;
    @BindView(R.id.supertext)
    SuperTextView supertext;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_super_text;
    }

    @Override
    protected void initView() {
        toolbar.setTitle(getString(R.string.title_supertext));
        supertext.addAdjuster(new RippleAdjuster(getResources().getColor(R.color.color_line)));
        supertext.addAdjuster(new MoveEffectAdjuster().setOpportunity(SuperTextView.Adjuster.Opportunity.BEFORE_TEXT))
                .setAutoAdjust(true)
                .startAnim();

    }

}
